package com.ts.api.module.product.service.impl;

import com.ts.api.module.product.dao.ProductDao;
import com.ts.api.module.product.entity.po.ProductPO;
import com.ts.api.module.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductDao productDao;

    @Override
    @Transactional(readOnly = true)
    public ProductPO get(Long id) {
        return productDao.get(id);
    }

}
